<?php 
class Timeunit_model extends CI_Model {
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    function getall(){
        $this->db->select();
        $this->db->from('tbltimeunit');
        $query = $this->db->get();
        return $query->result_array();
    }
    
}
?>
